import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import axios from './http'
import VueJsonp from 'vue-jsonp'
import Common from './utils/common'
import utils from './utils/utils'
import 'element-ui/lib/theme-chalk/index.css';
import jsencrypt from 'jsencrypt'
import ElementUI from 'element-ui';
Vue.use(VueJsonp);
Vue.use(Common);
Vue.use(ElementUI);

Vue.config.productionTip = false
//这样可以在各个组件中使用axios
Vue.prototype.$axios=axios;

//iframe页面
/*
utils.setIframe();
new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
*/

//addEve加一个参数  没验证成功 也施行
  
utils.setIframe().then(resole=>{

  utils.addEve(false,Vue,new Vue({
    router,
    store,
    render: h => h(App)
  }),'#app')
})
